package com.sx.art2.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sx.art2.beans.Order;

public interface OrderMapper {
	
	void create(Order order);//
	void updateOrderState(@Param("orderState") int orderState,@Param("orderId")String orderId,@Param("time") String time);
	void withdrawOrder();
	List<Order> selectOrderByUser(int userId);
	List<Order> selectAll();
	void payMent(Order order);

	Order selectByOrderId(@Param("orderId") String OrderId);
    List<Order> list2();
    List<Order> list3(int orderState);


	List<Order> selectOrderAmount();
	void confirm();//超时自动收货
	void confirmtime(@Param("orderState") int orderState,@Param("orderId")String orderId,@Param("time") String time);


}
